package com.example.baseutils;

import android.content.Context;

import com.tencent.bugly.crashreport.CrashReport;

/**
 * Author by lp,on 2021/12/17/017,14:31.
 */
public class Bugly {
    public static void init(Context context, String key, boolean state, String DeviceId, String DeviceModel) {
        CrashReport.UserStrategy strategy = new CrashReport.UserStrategy(context);
        strategy.setDeviceID(DeviceId);
        strategy.setDeviceModel(DeviceModel);
        CrashReport.setDeviceId(context, DeviceId);
        CrashReport.initCrashReport(context.getApplicationContext(), key, state, strategy);
    }
}